var menu = [{
        title: '从“跑马圈地”到“精耕细作”'
    },
    {
        title: '企业：公开、独立、寻找出路'
    },
    {
        title: '行业：饱和、下沉、头布聚集'
    },
    {
        title: '碳中和：垃圾焚烧未来发展的路'
    }
]
renderMenu(menu)

function renderMenu(menu) {
    var lis = ''
    const deg = 90
    var p2 = document.getElementById('p2')
    for (var i = 0; i < menu.length; i++) {
        var sublis = ''
        var rotateDeg = deg / menu.length

        var ul = ' <ul class="p3 a' + 0 + '">' + sublis + '</ul>'
        lis += '<li class="s2">' +
            '<a style="transform: rotate(' + (rotateDeg * i) + 'deg);" href="javascript:;"><span>' + menu[i].title + '</span></a>' +
            '' + ul + '' +
            '</li>'
    }
    p2.innerHTML = lis
}